package com.pro.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.xml.soap.SAAJResult;
import java.util.Date;

public class JsComment {

  private Integer id;
  private Integer userId;
  private Integer commodityId;
  private Integer type;
  private String userType;
  private String status;
  private String content;
  private Integer parentId;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date commentDate;
  private Integer display;
  private Integer fabulous;
  private Integer reply;
  private String createId;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createDate;
  private String updateId;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateDate;

  private String account;//账户名
  private String nickname;//前端昵称
  private Integer productId;
  private String productName;//商品名
  private Integer countAll;//评论数量
  private String acatarUrl;//用户头像
  private String trueName;//后台用户名字
  private String avatarUrl;//前台用户头像
  private Integer courseId;//课程ID
  private String courseName;//课程名
  private Integer microcircleId;//微圈ID
  private String artcleTitle;//微圈名称

  public JsComment() {
    super();
  }

  public JsComment(Integer id, Integer userId, Integer commodityId, Integer type, String userType, String status, String content, Integer parentId, Date commentDate, Integer display, Integer fabulous, Integer reply, String createId, Date createDate, String updateId, Date updateDate, String account, String nickname, Integer productId, String productName, Integer countAll, String acatarUrl, String trueName, String avatarUrl, Integer courseId, String courseName, Integer microcircleId, String artcleTitle) {
    this.id = id;
    this.userId = userId;
    this.commodityId = commodityId;
    this.type = type;
    this.userType = userType;
    this.status = status;
    this.content = content;
    this.parentId = parentId;
    this.commentDate = commentDate;
    this.display = display;
    this.fabulous = fabulous;
    this.reply = reply;
    this.createId = createId;
    this.createDate = createDate;
    this.updateId = updateId;
    this.updateDate = updateDate;
    this.account = account;
    this.nickname = nickname;
    this.productId = productId;
    this.productName = productName;
    this.countAll = countAll;
    this.acatarUrl = acatarUrl;
    this.trueName = trueName;
    this.avatarUrl = avatarUrl;
    this.courseId = courseId;
    this.courseName = courseName;
    this.microcircleId = microcircleId;
    this.artcleTitle = artcleTitle;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Integer getUserId() {
    return userId;
  }

  public void setUserId(Integer userId) {
    this.userId = userId;
  }

  public Integer getCommodityId() {
    return commodityId;
  }

  public void setCommodityId(Integer commodityId) {
    this.commodityId = commodityId;
  }

  public Integer getType() {
    return type;
  }

  public void setType(Integer type) {
    this.type = type;
  }

  public String getUserType() {
    return userType;
  }

  public void setUserType(String userType) {
    this.userType = userType;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  public Integer getParentId() {
    return parentId;
  }

  public void setParentId(Integer parentId) {
    this.parentId = parentId;
  }

  public Date getCommentDate() {
    return commentDate;
  }

  public void setCommentDate(Date commentDate) {
    this.commentDate = commentDate;
  }

  public Integer getDisplay() {
    return display;
  }

  public void setDisplay(Integer display) {
    this.display = display;
  }

  public Integer getFabulous() {
    return fabulous;
  }

  public void setFabulous(Integer fabulous) {
    this.fabulous = fabulous;
  }

  public Integer getReply() {
    return reply;
  }

  public void setReply(Integer reply) {
    this.reply = reply;
  }

  public String getCreateId() {
    return createId;
  }

  public void setCreateId(String createId) {
    this.createId = createId;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public String getUpdateId() {
    return updateId;
  }

  public void setUpdateId(String updateId) {
    this.updateId = updateId;
  }

  public Date getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(Date updateDate) {
    this.updateDate = updateDate;
  }

  public String getAccount() {
    return account;
  }

  public void setAccount(String account) {
    this.account = account;
  }

  public String getNickname() {
    return nickname;
  }

  public void setNickname(String nickname) {
    this.nickname = nickname;
  }

  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }

  public String getProductName() {
    return productName;
  }

  public void setProductName(String productName) {
    this.productName = productName;
  }

  public Integer getCountAll() {
    return countAll;
  }

  public void setCountAll(Integer countAll) {
    this.countAll = countAll;
  }

  public String getAcatarUrl() {
    return acatarUrl;
  }

  public void setAcatarUrl(String acatarUrl) {
    this.acatarUrl = acatarUrl;
  }

  public String getTrueName() {
    return trueName;
  }

  public void setTrueName(String trueName) {
    this.trueName = trueName;
  }

  public String getAvatarUrl() {
    return avatarUrl;
  }

  public void setAvatarUrl(String avatarUrl) {
    this.avatarUrl = avatarUrl;
  }

  public Integer getCourseId() {
    return courseId;
  }

  public void setCourseId(Integer courseId) {
    this.courseId = courseId;
  }

  public String getCourseName() {
    return courseName;
  }

  public void setCourseName(String courseName) {
    this.courseName = courseName;
  }

  public Integer getMicrocircleId() {
    return microcircleId;
  }

  public void setMicrocircleId(Integer microcircleId) {
    this.microcircleId = microcircleId;
  }

  public String getArtcleTitle() {
    return artcleTitle;
  }

  public void setArtcleTitle(String artcleTitle) {
    this.artcleTitle = artcleTitle;
  }

  @Override
  public String toString() {
    return "JsComment{" +
            "id=" + id +
            ", userId=" + userId +
            ", commodityId=" + commodityId +
            ", type=" + type +
            ", userType='" + userType + '\'' +
            ", status='" + status + '\'' +
            ", content='" + content + '\'' +
            ", parentId=" + parentId +
            ", commentDate=" + commentDate +
            ", display=" + display +
            ", fabulous=" + fabulous +
            ", reply=" + reply +
            ", createId='" + createId + '\'' +
            ", createDate=" + createDate +
            ", updateId='" + updateId + '\'' +
            ", updateDate=" + updateDate +
            ", account='" + account + '\'' +
            ", nickname='" + nickname + '\'' +
            ", productId=" + productId +
            ", productName='" + productName + '\'' +
            ", countAll=" + countAll +
            ", acatarUrl='" + acatarUrl + '\'' +
            ", trueName='" + trueName + '\'' +
            ", avatarUrl='" + avatarUrl + '\'' +
            ", courseId=" + courseId +
            ", courseName='" + courseName + '\'' +
            ", microcircleId=" + microcircleId +
            ", artcleTitle='" + artcleTitle + '\'' +
            '}';
  }
}
